const { Sequelize } = require('sequelize');

const dbConfig = {
  name: "student",
  user: "username",
  pass: "password",
  host: "127.0.0.1",
  port: "3306",
}
const sequelize = new Sequelize(
  dbConfig.name,
  dbConfig.user,
  dbConfig.pass,
  {
    host: dbConfig.host,
    dialect: "mysql",
    port: dbConfig.port,
  }
);

module.exports = sequelize